home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Games / SprocketInvaders / Source / SoundHandler.h < prev    next >
Encoding:
Text File  |  2000-09-28  |  2.1 KB  |  85 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        SoundHandler.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Version:    xxx put version here xxx
  7.  
  8.     Copyright:    © 1998-1999 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                xxx put dri here xxx
  13.  
  14.         Other Contact:        xxx put other contact here xxx
  15.  
  16.         Technology:            xxx put technology here xxx
  17.  
  18.     Writers:
  19.  
  20.         (cjd)    Chris De Salvo
  21.         (cjd)    Chris DeSalvo
  22.  
  23.     Change History (most recent first):
  24.  
  25.        <SP7>     1/21/99    cjd        Removing 68K build code
  26.          <6>      7/1/98    cjd        Added SSp CPU load variables
  27. */
  28.  
  29. //•    ------------------------------------------------------------------------------------------    •
  30. //•
  31. //•    Copyright © 1996 Apple Computer, Inc., All Rights Reserved
  32. //•
  33. //•
  34. //•        You may incorporate this sample code into your applications without
  35. //•        restriction, though the sample code has been provided "AS IS" and the
  36. //•        responsibility for its operation is 100% yours.  However, what you are
  37. //•        not permitted to do is to redistribute the source as "DSC Sample Code"
  38. //•        after having made changes. If you're going to re-distribute the source,
  39. //•        we require that you make it clear in the source that the code was
  40. //•        descended from Apple Sample Code, but that you've made changes.
  41. //•
  42. //•        Authors:
  43. //•            Chris De Salvo
  44. //•
  45. //•    ------------------------------------------------------------------------------------------    •
  46.  
  47. #ifndef __SOUNDHANDLER__
  48. #define __SOUNDHANDLER__
  49.  
  50. //•    ------------------------------    Includes
  51. //•    ------------------------------    Public Definitions
  52. //•    ------------------------------    Public Types
  53.  
  54. typedef enum GameSounds
  55. {
  56.     soundPlayerFire,
  57.     soundPlayerHit,
  58.     soundEnemyFire,
  59.     soundEnemyHit,
  60.     soundNumSounds
  61. } GameSounds;
  62.  
  63. //•    ------------------------------    Public Variables
  64.  
  65. extern Boolean    gSoundEffects;
  66.  
  67. extern UInt32    gCPULoadModifier;
  68. extern UInt32    gCPULoadMax;
  69. extern UInt32    gCPUCurrentLoad;
  70.  
  71. //•    ------------------------------    Public Functions
  72.  
  73. #ifdef __cplusplus
  74. extern "C" {
  75. #endif
  76.  
  77. extern void SoundHandlerInit(void);
  78. extern void SoundHandlerReset(void);
  79. extern void SoundHandlerPlay(GameSounds theSound, SInt16 x, SInt16 y);
  80.  
  81. #ifdef __cplusplus
  82. }
  83. #endif
  84.  
  85. #endif